<template>
	<div class="contents">
		<van-nav-bar
		  title="评价"
		  left-text="返回"
		  left-arrow
		  @click-left="onClickLeft"
		/>
		<div class="content">
			<van-card
				num="2"
				tag="标签"
				price="2.00"
				desc="描述信息"  
				title="商品标题"
				:thumb="imageURL"
				origin-price="10.00"
			>
			</van-card>
			<section class="rate">
				<van-row>
					<van-col span="5">商家评分:</van-col>
					<van-col span="19">
						<van-rate v-model="value" />
					</van-col>
				</van-row>
			</section>
			<section class="rate">
				<van-row>
					<van-col span="5">晒图:</van-col>
					<van-col span="19" class="shai">
						<van-row>
							<van-col span="8" class="shaiimg">
								<img src="../../build/logo.png" alt="">
							</van-col>
							<van-col span="8" class="shaiimg">
								<img src="../../build/logo.png" alt="">
							</van-col>
							<van-col span="8" class="shaiimg">
								<img src="../../build/logo.png" alt="">
							</van-col>
						</van-row>
					</van-col>
				</van-row>
			</section>
			<section class="rate">
				<van-row>
					<van-col span="5">评价:</van-col>
					<van-col span="19">
						<textarea placeholder="请输入您对我们产品的意见及建议" class="textping"></textarea>
					</van-col>
				</van-row>
			</section>
			<section class="rate">
				<van-button size="normal" block class="btnCom">评价</van-button>
			</section>
		</div>
	</div>
</template>

<script>
import Headerc from './Headerc'
import Vue from 'vue'
import { Row, Col, Cell, CellGroup, NavBar, Card, Rate, Button } from 'vant'
Vue.use(Row).use(Col).use(Cell).use(CellGroup).use(NavBar).use(Card).use(Rate).use(Button)
export default {
	data () {
		return {
			imageURL: require('../assets/img/build.png'),
			value: 3
		}
	},
	methods: {
		onClickLeft () {
			this.$router.go(-1)
		}
	},
	components: {
		Headerc
	}
}
</script>

<style lang="scss" scoped="scoped">
@import '@/lib/reset.scss';
.rate {
	padding: 0 .1rem;
	margin-top: .1rem;
	box-sizing: border-box;
}
.shaiimg {
	img {
		width: 100%;
		height: auto;
	}
}
.textping {
	width: 100%;
	height: .9rem;
}
.btnCom {
	background: #f44;
	color: #fff;
	margin-top: .1rem;
}
</style>
